package example;

public class TestOuterAndinnerClass {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Outter out = new Outter();
		Outter.Inner in = out.new Inner();
		in.print();
	}

}

class Outter {
	private int a = 11;

	public void print() {
		System.out.println("a=" + a);
	}

	class Inner {
		int a = 22;

		public void print() {
			int a = 33;
			System.out.println("Inner method a=" + a);
			System.out.println("Inner class a=" + this.a);
			System.out.println("Outter class a=" + Outter.this.a);
		}
	}
}
